﻿@if(Request.IsAuthenticated) {
    <text><span id="userInfo">welcome <strong>@User.Identity.Name</strong> !</span>  [ @Html.ActionLink("Log Off", "LogOff", "Account") ][@Html.ActionLink("Settings","Settings","Account")]</text>
    if (User.IsInRole("admin"))
    {        
         @Html.ActionLink("[ControlPanel]","ControlPanel","Admin")
    }
}
else {
    @:[ @Html.ActionLink("Log On", "LogOn", "Account") ]
}
